#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
namespace Cephei.QL.Experimental.Credit
{
    /// <summary> 
	/// 
	/// </summary>
    [Guid ("9FE2CD06-392C-4c04-8DC4-87B922F6A35E"),ComVisible(true)]
	public interface IDistribution 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 IDistribution Add(Double value);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 IDistribution AddAverage(Int32 bucket, Double value);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 IDistribution AddDensity(Int32 bucket, Double value);
        /// <summary> 
		/// 
		/// </summary>
		 Double Average(UInt64 k);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Double ConfidenceLevel(Double quantil);
        /// <summary> 
		/// 
		/// </summary>
		 Double Cumulative(UInt64 k);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Double CumulativeDensity(Double x);
        /// <summary> 
		/// 
		/// </summary>
		 Double CumulativeExcess(UInt64 k);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Double CumulativeExcessProbability(Double a, Double b);
        /// <summary> 
		/// 
		/// </summary>
		 Double Density(UInt64 k);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Double Dx(Double x);
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.Core.IVector<Double> Dx();
        /// <summary> 
		/// 
		/// </summary>
		 Double Dx(UInt64 k);
        /// <summary> 
		/// 
		/// </summary>
		 Double Excess(UInt64 k);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Double ExpectedValue();
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Int32 Locate(Double x);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 IDistribution Normalize {get;}
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 Size {get;}
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 IDistribution Tranche(Double attachmentPoint, Double detachmentPoint);
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
		 Double TrancheExpectedValue(Double a, Double d);
        /// <summary> 
		/// 
		/// </summary>
		 Cephei.Core.IVector<Double> X();
        /// <summary> 
		/// 
		/// </summary>
		 Double X(UInt64 k);
    }   

    /// <summary> 
	///  Factory
	/// </summary>
   	[ComVisible(true)]
    public interface IDistribution_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary> 
		/// 
		/// </summary>
	    IDistribution Create ();
        /// <summary> 
		/// -------------------------------------------------------------------------
		/// </summary>
	    IDistribution Create (Int32 nBuckets, Double xmin, Double xmax);
    }
}

